package cn.sofwin.sb.di;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class Computer {
    private String bran="MacBookPro";

    @Autowired
    Memory memory;

    public Computer() {
    }

    public String getBran() {
        return bran;
    }

    public void setBran(String bran) {
        this.bran = bran;
    }

    public Memory getMemory() {
        return memory;
    }

    public void setMemory(Memory memory) {
        this.memory = memory;
    }

    @Override
    public String toString() {
        return "{" +
                "bran='" + bran + '\'' +
                ", memory=" + memory +
                '}';
    }
}
